package com.heima.media.listener;

import com.heima.media.task.ArticleTask;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import javax.annotation.PostConstruct;

/**
 * @author Mr_Su
 * @version v1.0
 * @date 2022/7/5 0:53
 * @desciption
 */
@Component
public class ArticleDelayListener {

    @Autowired
    private ArticleTask articleTask;

    @PostConstruct // 当前对象初始化后就会执行这个方法
    public void handleMsg() throws Exception {
        articleTask.handleMsg();
    }


}
